#include<stdio.h>
#define N 16
typedef unsigned char *byte_pointer; 
/*
int main()
{
	//int flag = 0;
	int check_int = 1;
	char *check_char =(char *)(&check_int);
	printf("读取整型1的第一个内存地址，为%c\n",*check_char);
	if(*check_char == 1)
		printf("学号20155322的笔记本电脑是小端。\n");
	else if(*check_char == 0)
		printf("学号20155322的笔记本电脑是大端。\n");
	return 0; 
}
*/
/*
//第二题
int main()
{
	int my_intval = 5322;
	float my_floatval = (float)my_intval;
	printf("&f",my_floatval);
	int path_val = &my_intval;
	show_int(my_intval);
	show_float(my_floatval);
	return 0;
}
*/
/*
//第三题
int main(){
	short int v = 5322;
	unsigned short uv = (unsigned short) v;
	printf("v = %d,uv = %u\n",v,uv);
	return 0;
}
*/
int g(int x){
    return x+3;
}
int f(int x){
     int i = 22;
    return g(x)+i;
}
int main(void){
    return f(8)+1;
}

/*
void show_bytes(byte_pointer start,size_t len) {
	size_t i;
	int a[N];
	int n;
	for(i = 0; i < len; i++)
	    printf("   %.2x",start[i]);
	
	printf("\n");
	for(i = 0; i < N; i++){
		a[n-1-i] = n % 2;
		n /= 2;
	}
	for(i = 0; i < N; i++){
                printf("%d",a[i]);
		
                //n /= 2;
        }

        
	
	
	printf ("\n");
}


void show_int (int x) {
//	printf("sizeof(int) is %d\n",sizeof(int));
	show_bytes((byte_pointer)&x,sizeof(int));
}
void show_float (float x) 
{
//	printf("sizeof(float) is %d\n",sizeof(float));
	show_bytes((byte_pointer)&x,sizeof(float));
}

void show_pointer (void *x) {
	show_bytes((byte_pointer)&x,sizeof(void *));
}
*/
